package com.solocredit.finance.ui.market.impl

import com.solocredit.finance.http.ApiService
import com.solocredit.finance.http.HttpHelper
import com.solocredit.finance.http.IHttpCallback
import org.json.JSONObject

/**
 * MullaFlow
 * @Author wwdeng
 * @CreateTime: 2024/8/05 13:45
 * @Annotation：贷款申请 Model 实现
 */
class MullaApplyModelImpl {

    /**
     * 获取贷款额度
     */
    fun loadMullaApplyDataAction(params: JSONObject, callBack: IHttpCallback){
        val httpUrl = ApiService.getHttpUrl(ApiService.API_PATH.MULLA_API_APPLY_CUSTOM_LIMIT_INFO_PATH)
        HttpHelper.postMullaAction(httpUrl,params,callBack)
    }

    /**
     * 创建订单
     */
    fun onMullaCreateApplyOrderAction(params: JSONObject, callBack: IHttpCallback){
        val httpUrl = ApiService.getHttpUrl(ApiService.API_PATH.MULLA_API_APPLY_ORDER_CREATE_PATH)
        HttpHelper.postMullaAction(httpUrl,params,callBack)
    }
}